package com.hundred.item.dao;

import java.util.List;

import com.hundred.item.dao.dataobject.ItemCompareDO;

public interface ItemCompareDAO {

	/**
	 * 
	 * @param itemCompareDO
	 * @return
	 */
	public int insertCompareModel(ItemCompareDO itemCompareDO);
	
	/**
	 * 
	 * @param itemCompareDO
	 * @return
	 */
	public int updateCompareModel(ItemCompareDO itemCompareDO);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public ItemCompareDO getCompareModelById(long id);
	
	/**
	 * 
	 * @param userId
	 * @return
	 */
	public List<ItemCompareDO> getCompareModelByUserId(long userId);
	
	/**
	 * 
	 * @param winnerItemId
	 * @return
	 */
	public List<ItemCompareDO> getCompareModelByWinnerItemId(long winnerItemId);
	
	/**
	 * 
	 * @param winnerItemId
	 * @param status
	 * @return
	 */
	public List<ItemCompareDO> getCompareModelByWinnerItemIdAndStatus(long winnerItemId,int status);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public int deleteCompareModelById(long id);
	
	/**
	 * 
	 * @param userId
	 * @return
	 */
	public int deleteCompareModelByUserId(long userId);
	
}
